package com.zhangh.summer.admin.support.prometheus.druid;

import io.prometheus.client.Gauge;

/**
 * @description: TODO
 * @author: zhanghui  zhanghlucky@163.com
 * @create: 2020-07-01 11:08
 **/
public class DruidMetrics {
    public static final Gauge druidInitialSizeEndpoint = (Gauge)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder) Gauge.build().name("druid_initial_size")).help("Initial size")).labelNames(new String[]{"pool"})).register();
    public static final Gauge druidMinIdleEndpoint = (Gauge)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder) Gauge.build().name("druid_min_idle")).help("Min idle")).labelNames(new String[]{"pool"})).register();
    public static final Gauge druidMaxActiveEndpoint = (Gauge)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder) Gauge.build().name("druid_max_active")).help("Max active")).labelNames(new String[]{"pool"})).register();
    public static final Gauge druidActiveCountEndpoint = (Gauge)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder) Gauge.build().name("druid_active_count")).help("Active count")).labelNames(new String[]{"pool"})).register();
    public static final Gauge druidActivePeakEndpoint = (Gauge)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder) Gauge.build().name("druid_active_peak")).help("Active peak")).labelNames(new String[]{"pool"})).register();
    public static final Gauge druidPoolingPeakEndpoint = (Gauge)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder) Gauge.build().name("druid_pooling_peak")).help("Pooling peak")).labelNames(new String[]{"pool"})).register();
    public static final Gauge druidPoolingCountEndpoint = (Gauge)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder) Gauge.build().name("druid_pooling_count")).help("Pooling count")).labelNames(new String[]{"pool"})).register();
    public static final Gauge druidWaitThreadCountEndpoint = (Gauge)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder) Gauge.build().name("druid_wait_thread_count")).help("Not empty thread count")).labelNames(new String[]{"pool"})).register();
    public static final Gauge druidNotEmptyWaitCountEndpoint = (Gauge)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder) Gauge.build().name("druid_not_empty_wait_count")).help("Not empty wait count")).labelNames(new String[]{"pool"})).register();
    public static final Gauge druidNotEmptyWaitMillisEndpoint = (Gauge)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder) Gauge.build().name("druid_not_empty_wait_millis")).help("Not empty wait millis")).labelNames(new String[]{"pool"})).register();
    public static final Gauge druidNotEmptyThreadCountEndpoint = (Gauge)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder) Gauge.build().name("druid_not_empty_thread_count")).help("Not empty thread count")).labelNames(new String[]{"pool"})).register();
    public static final Gauge druidLogicConnectCountEndpoint = (Gauge)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder) Gauge.build().name("druid_logic_connect_count")).help("Logic connect count")).labelNames(new String[]{"pool"})).register();
    public static final Gauge druidLogicCloseCountEndpoint = (Gauge)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder) Gauge.build().name("druid_logic_close_count")).help("Logic close count")).labelNames(new String[]{"pool"})).register();
    public static final Gauge druidLogicConnectErrorCountEndpoint = (Gauge)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder) Gauge.build().name("druid_logic_connect_error_count")).help("Logic connect error count")).labelNames(new String[]{"pool"})).register();
    public static final Gauge druidPhysicalConnectCountEndpoint = (Gauge)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder) Gauge.build().name("druid_physical_connect_count")).help("Physical connect count")).labelNames(new String[]{"pool"})).register();
    public static final Gauge druidPhysicalCloseCountEndpoint = (Gauge)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder) Gauge.build().name("druid_physical_close_count")).help("Physical close count")).labelNames(new String[]{"pool"})).register();
    public static final Gauge druidPhysicalConnectErrorCountEndpoint = (Gauge)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder) Gauge.build().name("druid_physical_connect_error_count")).help("Physical connect error count")).labelNames(new String[]{"pool"})).register();
    public static final Gauge druidErrorCountEndpoint = (Gauge)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder) Gauge.build().name("druid_error_count")).help("Error count")).labelNames(new String[]{"pool"})).register();
    public static final Gauge druidExecuteCountEndpoint = (Gauge)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder) Gauge.build().name("druid_execute_count")).help("Start transaction count")).labelNames(new String[]{"pool"})).register();
    public static final Gauge druidStartTransactionCountEndpoint = (Gauge)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder) Gauge.build().name("druid_start_transaction_count")).help("Initial size")).labelNames(new String[]{"pool"})).register();
    public static final Gauge druidCommitCountEndpoint = (Gauge)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder) Gauge.build().name("druid_commit_count")).help("Commit count")).labelNames(new String[]{"pool"})).register();
    public static final Gauge druidRollbackCountEndpoint = (Gauge)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder) Gauge.build().name("druid_rollback_count")).help("Rollback count")).labelNames(new String[]{"pool"})).register();
    public static final Gauge druidPreparedStatementOpenCountEndpoint = (Gauge)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder) Gauge.build().name("druid_prepared_statement_open_count")).help("Prepared statement open count")).labelNames(new String[]{"pool"})).register();
    public static final Gauge druidPreparedStatementClosedCountEndpoint = (Gauge)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder) Gauge.build().name("druid_prepared_statement_closed_count")).help("Prepared statement closed count")).labelNames(new String[]{"pool"})).register();
    public static final Gauge druidPsCacheAccessCountEndpoint = (Gauge)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder) Gauge.build().name("druid_ps_cache_access_count")).help("PS cache access count")).labelNames(new String[]{"pool"})).register();
    public static final Gauge druidPsCacheHitCountEndpoint = (Gauge)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder) Gauge.build().name("druid_ps_cache_hit_count")).help("PS cache hit count")).labelNames(new String[]{"pool"})).register();
    public static final Gauge druidPsCacheMissCountEndpoint = (Gauge)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder) Gauge.build().name("druid_ps_cache_miss_count")).help("PS cache miss count")).labelNames(new String[]{"pool"})).register();
    public static final Gauge druidExecuteQueryCountEndpoint = (Gauge)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder) Gauge.build().name("druid_execute_query_count")).help("Execute query count")).labelNames(new String[]{"pool"})).register();
    public static final Gauge druidExecuteUpdateCountEndpoint = (Gauge)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder) Gauge.build().name("druid_execute_update_count")).help("Execute update count")).labelNames(new String[]{"pool"})).register();
    public static final Gauge druidExecuteBatchCountEndpoint = (Gauge)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder) Gauge.build().name("druid_execute_batch_count")).help("Execute batch count")).labelNames(new String[]{"pool"})).register();
    public static final Gauge druidMaxWaitEndpoint = (Gauge)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder) Gauge.build().name("druid_max_wait")).help("Max wait")).labelNames(new String[]{"pool"})).register();
    public static final Gauge druidMaxWaitThreadCountEndpoint = (Gauge)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder) Gauge.build().name("druid_max_wait_thread_count")).help("Max wait thread count")).labelNames(new String[]{"pool"})).register();
    public static final Gauge druidLoginTimeoutEndpoint = (Gauge)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder) Gauge.build().name("druid_login_timeout")).help("Login timeout")).labelNames(new String[]{"pool"})).register();
    public static final Gauge druidQueryTimeoutEndpoint = (Gauge)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder) Gauge.build().name("druid_query_timeout")).help("Query timeout")).labelNames(new String[]{"pool"})).register();
    public static final Gauge druidTransactionQueryTimeoutEndpoint = (Gauge)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder)((io.prometheus.client.Gauge.Builder) Gauge.build().name("druid_transaction_query_timeout")).help("Transaction query timeout")).labelNames(new String[]{"pool"})).register();

}
